-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Button): support for not-allowed cursor when disabled #2052
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2052 +/- ##
=======================================
Coverage 97.43% 97.44%
=======================================
Files 109 109
Lines 2615 2618 +3
Branches 665 668 +3
=======================================
+ Hits 2548 2551 +3
Misses 65 65
Partials 2 2 ☔ View full report in Codecov by Sentry. |
size-limit report 📦
|
@@ -263,23 +263,21 @@ | |||
* Disabled | |||
*/ | |||
.button--disabled { | |||
pointer-events: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We disable all the pointer events for these buttons to make them truly disabled (and this avoids having to add styles to override the :hover
, :active
and other pseudo-selectors
} | ||
} | ||
|
||
.button__disabled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to style a container when disabled. because pointer-events
is also how the cursor gets styled, we cannot just add cursor: not-allow
## [15.4.0](v15.3.1...v15.4.0) (2024-09-26) [Storybook](https://61313967cde49b003ae2a860-sdpxmjxjai.chromatic.com/) ### Features * **Button:** support for not-allowed cursor when disabled ([#2052](#2052)) ([46cb9f6](46cb9f6)) * **DataTable:** introduce 1.0 component ([#2050](#2050)) ([ffd0e82](ffd0e82)), closes [#2055](#2055) ### Bug Fixes * **Button:** apply external styles when disabled ([#2060](#2060)) ([e762d8b](e762d8b))
Test Plan: